<?php

namespace App\Http\Requests\Personal\MyResume;
use App\Http\Requests\Request;

class MyResumeRequest extends Request {

    public function authorize(){
        return true;
    }
    public function rules(){
        return [
            'name'=>'required',
            'sex'=>'required',
            'birthday'=>'required',
            'education'=>'required',
            'mobile' => 'required|mobile_verification',
            'email' => 'email',
            'qq' => 'check_qq',
            'job_status' => 'required',
            'homeaddress' => 'required',
            'jobsort1'=>'required',
            'jobarea1'=>'required',
            'intentionjobs'=>'required',
            'height'=>'check_height'
        ];
    }
    public function messages(){
        return [
            'name.required'=>'姓名必须填写',
            'sex.required'=>'请选择性别',
            'birthday.required'=>'请选择成立年份',
            'education.required'=>'请选择公司诱惑',
            'mobile.required'=>'手机号码必须填写',
            'mobile.mobile_verification'=>'请输入正确的手机号码',
            'email.email'=>'请输入正确的邮箱',
            'qq.check_qq'=>'请输入正确的qq号码',
            'job_status.required'=>'请选择求职状态',
            'homeaddress.required'=>'请选择现居地',
            'jobsort1.required'=>'请选择工作岗位',
            'jobarea1.required'=>'请选择工作地区',
            'intentionjobs.required'=>'意向岗位必须填写',
            'height.check_height'=>'请输入正确的身高'
        ];
    }
}